/// <summary>
        /// Clicking "Load"
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void loadToolStripMenuItem_Click(object sender, EventArgs e)
        {
            openFileDialog1.InitialDirectory = BaseFolder;
            openFileDialog1.FileName         = string.Empty;
            DialogResult result = openFileDialog1.ShowDialog();

            if (result == DialogResult.OK)
            {
                if (Data.Load(openFileDialog1.FileName))
                {
                    if (alternateContent != null)
                    {
                        alternateContent.Init(Data);
                        alternateContent.RefreshValues();
                        PrefChanged(PrefPropertyGrid, new PropertyChangedEventArgs("All"));
                    }
                    else
                    {
                        PrefPropertyGrid.Refresh();
                        PrefChanged(PrefPropertyGrid, new PropertyChangedEventArgs("All"));
                    }
                }
                else
                {
                    TKMessageBox.ShowError("Can't load selected Preference !", "Preference error");
                }
            }
        }
 private void openToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (folderBrowserDialog1.ShowDialog() == DialogResult.OK)
     {
         if (!OpenSequence(folderBrowserDialog1.SelectedPath))
         {
             TKMessageBox.ShowError("Can't found images to read in " + folderBrowserDialog1.SelectedPath, "Open sequence error");
         }
     }
 }
Beispiel #3
0
        private void OKButton_Click(object sender, EventArgs e)
        {
            if (enumValuesPanel.Visible && string.IsNullOrEmpty(enumValuesTB.Text))
            {
                TKMessageBox.ShowError("Please give at least one enum value !", "Parameter type incomplete");
                return;
            }

            DialogResult = DialogResult.OK;
            Close();
        }
 public override void Error(string p)
 {
     TKMessageBox.ShowError(p, "Generic error");
 }
        public override void ExecuteCommand(string p, params string[] args)
        {
            List <string> lArgs = new List <string>(args);

            TKMessageBox.ShowError("Ask to execute command '" + p + "', args : '" + TypesHelper.Join(lArgs) + "'", "ExecuteCommand called");
        }
 public override void ExecuteCode(string p, int mode)
 {
     TKMessageBox.ShowError("Ask to execute '" + p + "', mode " + mode.ToString(), "ExecuteCode called");
 }
 public override void RemoveFromSelection(List <string> objs)
 {
     TKMessageBox.ShowError("RemoveFromSelection", "RemoveFromSelection called");
 }
 public override void AddToSelection(List <string> objs)
 {
     TKMessageBox.ShowError("AddToSelection", "AddToSelection called");
 }
Beispiel #9
0
 public virtual void Error(string p)
 {
     TKMessageBox.ShowError(p, "Generic error");
 }