//Click event View Calender Button //show Leave_Project Form and receive Leave_Project_Name private void button_Calender_Click(object sender, EventArgs e) { if (!calender.Created) { if (calender.IsDisposed) { calender = new Calender(); //make Object } calender.Owner = this; calender.FormSendEvent += new Calender.FormSendDataHandler(approved_Calender_Index); calender.Show(); } else { calender.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); }