Beispiel #1
0
 public void OnEdit()
 {
     if (wml.DataBase != "" && wml.DataBase != null && wml.Active)
     {
         MultiLanguageEditorDialog form = new MultiLanguageEditorDialog(wml);
         form.ShowDialog();
     }
     else
     {
         System.Windows.Forms.MessageBox.Show("the property of webmultilanguage hasn't be set correctly");
     }
 }
Beispiel #2
0
 public void OnEdit(object sender, EventArgs e)
 {
     if ((this.Component as WebMultiLanguage).DataBase != "" && (this.Component as WebMultiLanguage).DataBase != null && (this.Component as WebMultiLanguage).Active)
     {
         MultiLanguageEditorDialog form = new MultiLanguageEditorDialog(this.Component);
         form.ShowDialog();
     }
     else
     {
         System.Windows.Forms.MessageBox.Show("the property of webmultilanguage hasn't be set correctly");
     }
 }
Beispiel #3
0
 // 在Component上双击后执行
 public override void DoDefaultAction()
 {
     if ((this.Component as MultiLanguage).DataBase != "" && (this.Component as MultiLanguage).DataBase != null && (this.Component as MultiLanguage).Active)
     {
         MultiLanguageEditorDialog form = new MultiLanguageEditorDialog(this.Component);
         form.ShowDialog();
     }
     else
     {
         MessageBox.Show("the property of multilanguage hasn't be set correctly");
     }
 }