Esempio n. 1
0
        void m_ChangeCustomImageDialog_DialogOk(object sender, DialogResultArgs e)
        {
            imgCustomImage.Source = m_ImageChoice.CurrentObject != null ? m_ImageChoice.CurrentObject.Image : null;

            Condition.Appearance.CustomImage    = imgCustomImage.Source as BitmapImage;
            Condition.Appearance.CustomImageUri = m_ImageChoice.CurrentObject != null ? m_ImageChoice.CurrentObject.Uri : String.Empty;
        }
        void m_Dialog_DialogClosed(object sender, DialogResultArgs e)
        {
            EventHandler handler = DialogCancel;

            if (handler != null)
            {
                handler(this, EventArgs.Empty);
            }
        }
Esempio n. 3
0
        void Dlg_DialogOk(object sender, DialogResultArgs e)
        {
            if (CurrentObject == null)
            {
                e.Cancel = true;
                return;
            }

            if (String.IsNullOrEmpty(CurrentObject.ContentFileName))
            {
                MessageBox.Show(Localization.ObjectLoadDialog_ContentError_Message, Localization.Error, MessageBoxButton.OK);
                e.Cancel = true;
                return;
            }

            EventHandler handler = DialogOk;

            if (handler != null)
            {
                handler(this, EventArgs.Empty);
            }
        }
        void ValueCopyDialog_OkButtonClick(object sender, DialogResultArgs e)
        {
            ModalDialog dlg = sender as ModalDialog;

            if (dlg != null)
            {
                ValueCopyControl copyControl = dlg.Content as ValueCopyControl;
                if (copyControl != null)
                {
                    String query = copyControl.BuildCopyScript();
                    if (!String.IsNullOrEmpty(query))
                    {
                        MdxQueryArgs args = CommandHelper.CreateMdxQueryArgs(Connection, query);
                        args.Type = QueryTypes.Update;
                        OlapDataLoader.LoadData(args, sender);
                    }
                    else
                    {
                        e.Cancel = true;
                    }
                }
            }
        }
 void Dlg_DialogOk(object sender, DialogResultArgs e)
 {
     e.Cancel = !OnDialogOk();
 }
Esempio n. 6
0
 void m_ContentCtrl_ButtonClick(object sender, DialogResultArgs e)
 {
     Close(e.Result);
 }