Exemplo n.º 1
0
        public MessagerForm(MainForm main, MessagerType m, string s)
        {
            InitializeComponent();
            Options.ApplyTheme(this);

            _main    = main;
            mode     = m;
            msg.Text = s;

            if (mode == MessagerType.Error)
            {
                nobtn.Visible = false;
                yesbtn.Text   = "OK";

                this.AcceptButton = nobtn;
                this.AcceptButton = yesbtn;
                this.CancelButton = nobtn;
                this.CancelButton = yesbtn;
            }
            if (mode == MessagerType.Optimize)
            {
                chkPrint.Checked   = true;
                chkPrint.Visible   = true;
                chkSensors.Checked = false;
                chkSensors.Visible = true;
            }
        }
Exemplo n.º 2
0
        public MessagerForm(ManagerForm manager, MessagerType m, string s)
        {
            InitializeComponent();
            Options.ApplyTheme(this);

            _manager = manager;
            mode     = m;
            msg.Text = s;

            if (mode == MessagerType.Info)
            {
                nobtn.Visible = false;
                yesbtn.Text   = "OK";

                this.AcceptButton = nobtn;
                this.AcceptButton = yesbtn;
                this.CancelButton = nobtn;
                this.CancelButton = yesbtn;
            }
        }
Exemplo n.º 3
0
 public Member(string name, string pubKey, string address, ContractState state, ContractType type, MessagerType messagerType)
     : base(name, pubKey, address, state, type, (int)messagerType)
 {
 }
Exemplo n.º 4
0
 public Member(string name, string pubKey, ContractState state, MessagerType messagerType)
     : this(name, pubKey, null, state, ContractType.Messenger, messagerType)
 {
 }
Exemplo n.º 5
0
 public MessengerContract(string name, MessagerType ownerType)
     : base(name, ContractType.Messenger, (int)ownerType)
 {
 }