public RemoveServer(Channels channels, Configuration config) { this.channels = channels; this.config = config; this.ID = ActionID; this.MenuText = "Remove Server..."; }
public ServerConnect (Channels channels, Configuration config) { this.channels = channels; this.config = config; this.ID = ActionID; this.MenuText = "Connect"; }
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 = "JabbReto Preferences"; this.Resizable = true; var layout = new DynamicLayout(this); layout.Add(Tabs(), yscale: true); layout.AddSeparateRow(null, this.CancelButton(), this.OkButton(clicked: SaveData)); }
public ShowPreferences (Configuration config) { this.ID = ActionID; this.config = config; if (Generator.Current.ID == Generators.Mac) { this.MenuText = "Preferences..."; this.Accelerator = Application.Instance.CommonModifier | Key.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 }; this.AddDockedControl (splitter); SetView (); }
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; this.AddDockedControl (channelList); }