private void btnEdit_Click(object sender, RoutedEventArgs e) { var item = this.lbxCmds.SelectedItem as IIndexItem <BLECmdIndexExtraInfo>; if (item != null) { BLECommandsEdit.ShowBox(this, item); } else { App.ShowMsg(DI.Wrapper.GetText(MsgCode.NothingSelected)); } this.ReloadList(true); }
private void btnOk_Click(object sender, RoutedEventArgs e) { var dt = this.cbDataTypes.SelectedItem as BLETypeDisplay; if (dt != null) { BLECommandsEdit.ShowBox(this, dt.DataType); } else { App.ShowMsg(DI.Wrapper.GetText(MsgCode.NothingSelected)); } this.Close(); }
public static void ShowBox(Window parent, BLE_DataType dataType) { BLECommandsEdit win = new BLECommandsEdit(parent, null, UseType.New, dataType); win.ShowDialog(); }
public static void ShowBox(Window parent, IIndexItem <BLECmdIndexExtraInfo> index) { BLECommandsEdit win = new BLECommandsEdit(parent, index, UseType.Edit, index.ExtraInfoObj.DataType); win.ShowDialog(); }