removed ButtonStockType in favor of simply using StockType everywhere
This commit is contained in:
parent
ed8c2f7868
commit
114190a016
@ -35,10 +35,10 @@ namespace UniversalEditor.UserInterface.Dialogs
|
||||
{
|
||||
this.Layout = new GridLayout();
|
||||
|
||||
Button cmdOK = new Button(ButtonStockType.OK);
|
||||
Button cmdOK = new Button(StockType.OK);
|
||||
cmdOK.Click += cmdOK_Click;
|
||||
Buttons.Add(cmdOK);
|
||||
Buttons.Add(new Button(ButtonStockType.Cancel));
|
||||
Buttons.Add(new Button(StockType.Cancel));
|
||||
|
||||
Buttons[0].ResponseValue = (int)DialogResult.OK;
|
||||
Buttons[1].ResponseValue = (int)DialogResult.Cancel;
|
||||
|
||||
@ -59,13 +59,13 @@ namespace UniversalEditor.UserInterface.Dialogs
|
||||
case DocumentPropertiesDialogMode.Open:
|
||||
{
|
||||
this.Text = "Open Document";
|
||||
this.Buttons [0].StockType = ButtonStockType.Open;
|
||||
this.Buttons [0].StockType = StockType.Open;
|
||||
break;
|
||||
}
|
||||
case DocumentPropertiesDialogMode.Save:
|
||||
{
|
||||
this.Text = "Save Document";
|
||||
this.Buttons [0].StockType = ButtonStockType.Save;
|
||||
this.Buttons [0].StockType = StockType.Save;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@ -48,13 +48,13 @@ namespace UniversalEditor.UserInterface.Dialogs
|
||||
case DocumentPropertiesDialogMode.Open:
|
||||
{
|
||||
this.Text = "Open Document";
|
||||
this.Buttons [0].StockType = ButtonStockType.Open;
|
||||
this.Buttons [0].StockType = StockType.Open;
|
||||
break;
|
||||
}
|
||||
case DocumentPropertiesDialogMode.Save:
|
||||
{
|
||||
this.Text = "Save Document";
|
||||
this.Buttons [0].StockType = ButtonStockType.Save;
|
||||
this.Buttons [0].StockType = StockType.Save;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -285,9 +285,9 @@ namespace UniversalEditor.UserInterface.Dialogs
|
||||
}
|
||||
this.Controls.Add (sidebar, new BoxLayout.Constraints(true, true));
|
||||
|
||||
this.Buttons.Add (new Button (ButtonStockType.OK));
|
||||
this.Buttons.Add (new Button (StockType.OK));
|
||||
this.Buttons [0].ResponseValue = (int)DialogResult.OK;
|
||||
this.Buttons.Add (new Button (ButtonStockType.Cancel));
|
||||
this.Buttons.Add (new Button (StockType.Cancel));
|
||||
this.Buttons [1].ResponseValue = (int)DialogResult.Cancel;
|
||||
|
||||
switch (Mode)
|
||||
@ -295,13 +295,13 @@ namespace UniversalEditor.UserInterface.Dialogs
|
||||
case DocumentPropertiesDialogMode.Open:
|
||||
{
|
||||
this.Text = "Open Document";
|
||||
this.Buttons [0].StockType = ButtonStockType.Open;
|
||||
this.Buttons [0].StockType = StockType.Open;
|
||||
break;
|
||||
}
|
||||
case DocumentPropertiesDialogMode.Save:
|
||||
{
|
||||
this.Text = "Save Document";
|
||||
this.Buttons [0].StockType = ButtonStockType.Save;
|
||||
this.Buttons [0].StockType = StockType.Save;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@ -110,10 +110,10 @@ namespace UniversalEditor.UserInterface.Dialogs
|
||||
this.Controls.Add(tableParams, new BoxLayout.Constraints(false, false, 16, BoxLayout.PackType.End));
|
||||
|
||||
|
||||
this.Buttons.Add(new Button(ButtonStockType.New, DialogResult.None));
|
||||
this.Buttons.Add(new Button(ButtonStockType.Cancel, DialogResult.Cancel));
|
||||
this.Buttons.Add(new Button(StockType.New, DialogResult.None));
|
||||
this.Buttons.Add(new Button(StockType.Cancel, DialogResult.Cancel));
|
||||
|
||||
this.Buttons[0].StockType = ButtonStockType.New;
|
||||
this.Buttons[0].StockType = StockType.New;
|
||||
this.Buttons[0].ResponseValue = (int)DialogResult.OK;
|
||||
this.Buttons[0].Click += cmdOK_Click;
|
||||
|
||||
|
||||
@ -160,11 +160,11 @@ namespace UniversalEditor.Editors.Binary
|
||||
this.cmdColor.Click += cmdColor_Click;
|
||||
this.Controls.Add(this.cmdColor, new GridLayout.Constraints(4, 1));
|
||||
|
||||
this.Buttons.Add(new Button(ButtonStockType.OK));
|
||||
this.Buttons.Add(new Button(StockType.OK));
|
||||
this.Buttons[this.Buttons.Count - 1].Click += cmdOK_Click;
|
||||
this.Buttons[this.Buttons.Count - 1].ResponseValue = (int)DialogResult.OK;
|
||||
|
||||
this.Buttons.Add(new Button(ButtonStockType.Cancel));
|
||||
this.Buttons.Add(new Button(StockType.Cancel));
|
||||
this.Buttons[this.Buttons.Count - 1].ResponseValue = (int)DialogResult.Cancel;
|
||||
}
|
||||
|
||||
|
||||
@ -97,8 +97,8 @@ namespace UniversalEditor.Editors.FileSystem.Dialogs
|
||||
|
||||
Controls.Add(tbs, new BoxLayout.Constraints(true, true));
|
||||
|
||||
Buttons.Add(new Button(ButtonStockType.OK, DialogResult.OK));
|
||||
Buttons.Add(new Button(ButtonStockType.Cancel, DialogResult.Cancel));
|
||||
Buttons.Add(new Button(StockType.OK, DialogResult.OK));
|
||||
Buttons.Add(new Button(StockType.Cancel, DialogResult.Cancel));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -214,7 +214,7 @@ namespace UniversalEditor.Editors.Contact
|
||||
cboDetail.Text = detailType;
|
||||
|
||||
TextBox txtDetail = new TextBox ();
|
||||
Button btnDelete = new Button (ButtonStockType.Delete);
|
||||
Button btnDelete = new Button (StockType.Delete);
|
||||
ct.Controls.Add (cboDetail, new GridLayout.Constraints (iRow + 1, 0, 1, 1, ExpandMode.None));
|
||||
ct.Controls.Add (txtDetail, new GridLayout.Constraints (iRow + 1, 1, 1, 1, ExpandMode.Horizontal));
|
||||
ct.Controls.Add (btnDelete, new GridLayout.Constraints (iRow + 1, 2, 1, 1, ExpandMode.None));
|
||||
|
||||
@ -45,8 +45,8 @@ namespace UniversalEditor.Editors.Multimedia.Audio.Synthesized.PianoRoll.Dialogs
|
||||
|
||||
this.Controls.Add(p, new BoxLayout.Constraints(true, true));
|
||||
|
||||
this.Buttons.Add(new Button(ButtonStockType.OK, DialogResult.OK));
|
||||
this.Buttons.Add(new Button(ButtonStockType.Cancel, DialogResult.Cancel));
|
||||
this.Buttons.Add(new Button(StockType.OK, DialogResult.OK));
|
||||
this.Buttons.Add(new Button(StockType.Cancel, DialogResult.Cancel));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user