static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Model model = new Model(); PresentationModel presentationModel = new PresentationModel(model); Application.Run(new MainRMS(presentationModel)); }
//新增模式 public TestManage(PresentationModel presentationModel, string projectName) { _presentationModel = presentationModel; InitializeComponent(); Text = "New Test"; _projectTextBox.Text = projectName; InitializeGridView(); _isEdit = false; }
//新增模式 public RequirementManage(PresentationModel presentationModel, string projectName) { _presentationModel = presentationModel; InitializeComponent(); _projectTextBox.Text = projectName; Height = 230; Text = "New Requirement"; _testGrid.Visible = false; _okButton.Location = new Point(315, 195); _isEdit = false; }
//編輯模式 public TestManage(PresentationModel presentationModel, string projectName, string testName, string testContent, List<string> requirementList) { _presentationModel = presentationModel; InitializeComponent(); Text = "Edit Test"; _projectTextBox.Text = projectName; _testTextBox.Text = testName; _contentTextBox.Text = testContent; _requirementOriginList = requirementList; _originTestName = testName; InitializeGridViewEdit(); _isEdit = true; }
//編輯模式 public RequirementManage(PresentationModel presentationModel, string projectName, string requirementName, string requirementContent) { _presentationModel = presentationModel; InitializeComponent(); _projectTextBox.Text = projectName; _requirementTextBox.Text = requirementName; _originalRequirementName = requirementName; _contentTextBox.Text = requirementContent; Height = 410; Text = "Edit Requirement"; _okButton.Location = new Point(315, 365); _isEdit = true; InitializeTestGrid(); }
public MainRMS(PresentationModel presentationModel) { _presentationModel = presentationModel; InitializeComponent(); CheckForIllegalCrossThreadCalls = false; }
public Register(PresentationModel presentationModel) { _presentationModel = presentationModel; InitializeComponent(); _passwordTextBox.PasswordChar = '*'; }