public ProjectWindowWrapper(ProjectWindowCallback closeCB, ProjectWindowCallback confirmCB) { closeCallback = closeCB; confirmCallback = confirmCB; projectWindow = new ProjectWindow(); projectWindow.CloseEventHandler += new EventHandler(delegate(object sender, EventArgs e) { close(); if (closeCallback != null) closeCallback(C.ERROR_INT); }); projectWindow.ConfirmEventHandler += new EventHandler(delegate(object sender, EventArgs e) { int id = confirm(); if (confirmCallback != null) confirmCallback(id); }); projectWindow.BrowseFileEventHandler += new EventHandler(browseFile); projectWindow.comboBoxSelectionChangedEventHandler += new EventHandler(ComboBoxSelectionChanged); projectWindow.deleteConditionEventHandler += new EventHandler(deleteCondition); projectWindow.uncompleteLabelContentComboBoxTextChangedEventHandler += new EventHandler(uncompleteLabelContentComboBoxTextChanged); projectWindow.uncompleteLabelContentComboBoxLostFocusEventHandler += new EventHandler(uncompleteLabelContentComboBoxLostFocus); Init(); projectWindow.CompleteLabelListBox.ItemsSource = completeLabelList; projectWindow.UncompleteLabelListBox.ItemsSource = uncompleteLabelList; projectWindow.BaseMapLayerComboBox.ItemsSource = villageNameList; }
public ModifyProjectWindowWrapper(ProjectWindowCallback closeCB, ProjectWindowCallback confirmCB, int pID) : base(closeCB, confirmCB) { project.id = pID; project.select(); }
public CreateProjectWindowWrapper(ProjectWindowCallback closeCB, ProjectWindowCallback confirmCB) : base(closeCB, confirmCB) { }