[성현모] Recovery 기능 추가
This commit is contained in:
@ -8,6 +8,7 @@ using System.Linq;
|
||||
using System.Net;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
@ -73,6 +74,7 @@ namespace SystemX.Product.ALIS.UI.Subs
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
lbError.Text = string.Empty;
|
||||
//this.MinimumSize = new Size(400, 250);
|
||||
//this.MaximumSize = new Size(400, 250);
|
||||
|
||||
@ -258,6 +260,24 @@ namespace SystemX.Product.ALIS.UI.Subs
|
||||
|
||||
private void simpleButtonOK_Click(object sender, EventArgs e)
|
||||
{
|
||||
checkBoxUseDT2.Checked = false;
|
||||
|
||||
//cpxv2 ip 아님
|
||||
if (IsValidIPv4(maskedTextBoxTLIP.Text) == false)
|
||||
{
|
||||
lbError.Text = "TestList Server IP Invalied";
|
||||
return;
|
||||
}
|
||||
|
||||
//cpxv2 ip 아님
|
||||
if (string.IsNullOrEmpty(comboDbList.Text) == true)
|
||||
{
|
||||
lbError.Text = "No selected Recovery DataBase";
|
||||
return;
|
||||
}
|
||||
|
||||
DatabaseConnControl.LongTermCatalogName.RemoveAll(x=>x != comboDbList.Text);
|
||||
|
||||
bSelectUseDataServer2 = checkBoxUseDT2.Checked;
|
||||
//
|
||||
nOverviewModelC1 = comboBoxOverviewModel1.SelectedIndex;
|
||||
@ -319,9 +339,26 @@ namespace SystemX.Product.ALIS.UI.Subs
|
||||
comboBoxOverviewModel1.Visible = !comboBoxOverviewModel1.Visible;
|
||||
}
|
||||
|
||||
private void label3_DoubleClick(object sender, EventArgs e)
|
||||
private void btnRefresh_Click(object sender, EventArgs e)
|
||||
{
|
||||
comboBoxOverviewModel2.Visible = !comboBoxOverviewModel2.Visible;
|
||||
if (IsValidIPv4(maskedTextBoxDT1IP.Text) == false)
|
||||
{
|
||||
lbError.Text = "Invalid Log Server IP Address";
|
||||
return;
|
||||
}
|
||||
|
||||
lbError.Text = string.Empty;
|
||||
DatabaseConnControl.ConnectTestListDB(maskedTextBoxDT1IP.Text);
|
||||
var dbList = DatabaseConnControl.LongTermCatalogName;
|
||||
|
||||
comboDbList.Items.Clear();
|
||||
comboDbList.Items.AddRange(dbList.ToArray());
|
||||
}
|
||||
|
||||
private bool IsValidIPv4(string input)
|
||||
{
|
||||
string pattern = @"^((25[0-5]|2[0-4]\d|1\d{2}|[1-9]?\d)\.){3}(25[0-5]|2[0-4]\d|1\d{2}|[1-9]?\d)$";
|
||||
return Regex.IsMatch(input, pattern);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user