Exemple #1
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public UI() {
     Setup      = new Setup();
     About      = new About();
     Setting    = new Setting();
     Transmission   = new TransmissionWindow();
     Program.Controller.UIHasLoaded();
 }
Exemple #2
0
        public UI() {
            Application.Init();

            this.Setup      = new Setup();
            this.About      = new About();
            this.StatusIcon = new StatusIcon();
            this.Setting    = new Setting();
            this.Transmissions = new TransmissionWindow();
            Program.Controller.UIHasLoaded();
        }
Exemple #3
0
        public void Dispose() {
            if (this.disposed) {
                return;
            }

            if (this.Setup != null) {
                this.Setup.Dispose();
                this.Setup = null;
            }

            if (this.About != null) {
                this.About.Dispose();
                this.About = null;
            }

            if (this.StatusIcon != null) {
                this.StatusIcon.Dispose();
                this.StatusIcon = null;
            }

            if (this.Setting != null) {
                this.Setting.Dispose();
                this.Setting = null;
            }

            this.disposed = true;
        }