Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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();
        }