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; } }
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; } }
public Member(string name, string pubKey, string address, ContractState state, ContractType type, MessagerType messagerType) : base(name, pubKey, address, state, type, (int)messagerType) { }
public Member(string name, string pubKey, ContractState state, MessagerType messagerType) : this(name, pubKey, null, state, ContractType.Messenger, messagerType) { }
public MessengerContract(string name, MessagerType ownerType) : base(name, ContractType.Messenger, (int)ownerType) { }