public RemoveServer(Channels channels, Configuration config) { this.channels = channels; this.config = config; this.ID = ActionID; this.MenuText = "Remove Server..."; }
public MainForm(Configuration config) { this.config = config; this.Title = DEFAULT_TITLE; this.ClientSize = new Size(1000, 600); this.MinimumSize = new Size(640, 400); this.Style = "mainForm"; top = new TopSection(config); CreateActions(); Content = top; }
public MainForm(Configuration config) { this.config = config; this.Title = DEFAULT_TITLE; this.ClientSize = new Size(1000, 600); this.MinimumSize = new Size(640, 400); this.Style = "mainForm"; top = new TopSection(config); CreateActions(); this.AddDockedControl(top); HandleEvent(ShownEvent); }
public PreferencesDialog(Configuration config) { this.config = config; this.MinimumSize = new Size(200, 300); this.Title = "JabbR Preferences"; this.Resizable = true; var layout = new DynamicLayout(this); layout.Add(Tabs(), yscale: true); layout.AddSeparateRow(null, this.CancelButton(), this.OkButton(clicked: SaveData)); }
public Channels(Configuration config) { this.Config = config; channelList = new TreeView { Style = "channelList" }; channelList.DataStore = servers; channelList.SelectionChanged += (sender, e) => OnChannelChanged(e); channelList.Activated += HandleActivated; config.ServerAdded += HandleServerAdded; config.ServerRemoved += HandleServerRemoved; Content = channelList; }
public TopSection(Configuration config) { this.Config = config; Channels = new Channels(config); Channels.ChannelChanged += HandleChannelChanged; splitter = new Splitter{ Panel1 = Channels , Position = 160 }; this.AddDockedControl(splitter); SetView(); }
public ShowPreferences(Configuration config) { this.ID = ActionID; this.config = config; if (Generator.Current.IsMac) { this.MenuText = "Preferences..."; this.Shortcut = Application.Instance.CommonModifier | Keys.Comma; } else { this.MenuText = "Options..."; } }
public TopSection(Configuration config) { this.Config = config; Channels = new Channels(config); Channels.ChannelChanged += HandleChannelChanged; splitter = new Splitter{ Panel1 = Channels , Position = 160 }; Content = splitter; SetView(); }