private void NewTask() { string TClass = ""; if (this.treeMenu.SelectedNode.Name.Substring(0, 1) == "C") { //��ʾѡ����Ƿ���ڵ� TClass = this.treeMenu.SelectedNode.Text; } frmTask fTask = new frmTask(); fTask.NewTask(TClass); fTask.FormState = cGlobalParas.FormState.New; fTask.RShowWizard = ShowTaskWizard; fTask.rTClass = refreshNode; fTask.ShowDialog(); fTask.Dispose(); //ˢ��һ�µ�ǰ����ʾ�Ľڵ���Ϣ����Ϊ�Ѿ�������һ������ }
//���������Լ���������Ϣ���������е����� //ע�⣬������ص������������������Խ���������������� //��ǰ�жϵ������ǣ�����DZ༭�������ж�����汾�Ƿ���ϵ�ǰ�汾 //Լ����������ǣ�����������������������������������Ƿ����� //�汾Լ�������������������� private void LoadTaskInfo(string FilePath, string FileName ,cGlobalParas.FormState fState) { frmTask ft=null ; LoadAgain: try { ft = new frmTask(); ft.EditTask(FilePath, FileName); ft.FormState = fState; ft.RShowWizard = ShowTaskWizard; ft.rTClass = refreshNode; ft.ShowDialog(); ft.Dispose(); } catch (cSoukeyException) { if (fState == cGlobalParas.FormState.Browser) { MessageBox.Show(rm.GetString("Info19"), rm.GetString("MessageboxInfo"), MessageBoxButtons.OK, MessageBoxIcon.Information); ft = null; return; } if (MessageBox.Show(rm.GetString("Quaere4"), rm.GetString("MessageboxQuaere"), MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No) { ft = null; return; } else { ft = null; frmUpgradeTask fu = new frmUpgradeTask(FilePath + "\\" + FileName); fu.ShowDialog(); fu.Dispose(); fu = null; return; } } }