private void Show_DeadLine_Warning() { if (!wd.Created) { if (wd.IsDisposed) { wd = new Warning_DeadLine(current_DeadLine_Alert_Str); //make Object } wd.Show(); } else { wd.Activate(); } }
//------------------First Form Function------------------// public Form_Client() { InitializeComponent(); panel_Connect.Show(); panel_Login.Hide(); panel_Project_View.Hide(); panel_Project_File_View.Hide(); panel_File_View.Hide(); //get Client IP Get_My_IP_Wan(); // 뷰모드 지정 listView_ProjectList.View = View.Tile; // 아이콘을 위해 이미지 지정 listView_ProjectList.LargeImageList = imageList1; // 컬럼명과 컬럼사이즈 지정 listView_ProjectList.Columns.Add("Project_Name", 30, HorizontalAlignment.Left); listView_ProjectList.Columns.Add("Project_Number", 3, HorizontalAlignment.Left); listView_ProjectList.Columns.Add("Project_End_Date", 10, HorizontalAlignment.Left); listView_File_List.Columns.Add("File_Name", 30, HorizontalAlignment.Left); listView_File_List.Columns.Add("File_type", 4, HorizontalAlignment.Left); listView_File_List.Columns.Add("File_Size", 10, HorizontalAlignment.Left); timer1.Start(); //add Join_Project, Leave_Project Form Object cp = new Create_Project(); jp = new Join_Project(); lp = new Leave_Project(); calender = new Calender(); //default Setting date value current_Date = DateTime.Now; max_Date = new DateTime(9000, 12, 31); current_DeadLine_Alert_Str = current_DeadLine_Project + "가 " + max_Date.ToString("yyyy/MM/dd") + "까지입니다."; wd = new Warning_DeadLine(current_DeadLine_Alert_Str); }