Esempio n. 1
0
 public RemoveServer(Channels channels, Configuration config)
 {
     this.channels = channels;
     this.config = config;
     this.ID = ActionID;
     this.MenuText = "Remove Server...";
 }
Esempio n. 2
0
		public ServerConnect (Channels channels, Configuration config)
		{
			this.channels = channels;
			this.config = config;
			this.ID = ActionID;
			this.MenuText = "Connect";
		}
Esempio n. 3
0
 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);
 }
Esempio n. 4
0
        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));
        }
Esempio n. 5
0
		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...";
			}
		}
Esempio n. 6
0
		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 ();
		}
Esempio n. 7
0
		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);
		}