Exemplo n.º 1
0
        public t_ulav()
        {
            InitializeComponent();

            _autoResize  = new AutoSize(this);
            this.Resize += T_ulav_Resize;
        }
Exemplo n.º 2
0
 private void Init()
 {
     init = true;
     if (layoutGrop == null)
     {
         layoutGrop = GetComponent <LayoutGroup>();
     }
     if (rectTransform == null)
     {
         rectTransform = GetComponent <RectTransform>();
     }
     parentAutoSize = transform.parent.GetComponent <AutoSize>();
 }
        public CustomerForm(ICustomerRepository repo)
        {
            InitializeComponent();
            _repo        = repo;
            _form_resize = new AutoSize(this);

            _delete.Click += deleteClick;
            _report.Click += reportClick;
            _excel.Click  += excelClick;
            this.Load     += formLoad;

            FormDesign.SetColor(this);
        }
Exemplo n.º 4
0
        public WhatsAppForm(ICustomerRepository repo, ISend send)
        {
            InitializeComponent();
            FormDesign.SetColor(this);
            _form_resize = new AutoSize(this);

            _repo = repo;
            _send = send;
            _dt   = _repo.GetCustomers();

            this.Load       += FormLoad;
            this.send.Click += SendClick;
        }
        public override bool Equals(object obj)
        {
            if (ReferenceEquals(this, obj))
            {
                return(true);
            }
            var other = obj as TableFormatGeneratorOptions;

            if (other == null)
            {
                return(false);
            }
            return(
                base.Equals(other) &&
                AutoSize.Equals(other.AutoSize) &&
                HideTableHeaders.Equals(other.HideTableHeaders) &&
                Wrap.Equals(other.Wrap)
                );
        }
Exemplo n.º 6
0
        public SmsForm(ICustomerRepository repo, ISend send)
        {
            InitializeComponent();
            FormDesign.SetColor(this);
            _form_resize = new AutoSize(this);

            _repo = repo;
            _send = send;

            _apiKey.Validating += Valid.TextValidating;
            _sender.Validating += Valid.TextValidating;

            _dt     = _repo.GetCustomers();
            _config = new ProviderConfig
            {
                ApiKey = _apiKey.Text,
                Sender = _sender.Text
            };
            this.Load     += FormLoad;
            sendSMS.Click += senderClick;
        }
Exemplo n.º 7
0
        public Meni(IExcelDoc excel)
        {
            InitializeComponent();
            _excel = excel;

            gridView.ReadOnly = true;
            gridView.AllowUserToResizeColumns = false;
            gridView.AllowUserToResizeRows    = false;

            _form_resize = new AutoSize(this);
            this.Resize += _form_resize.Resize;
            _form_resize._get_initial_size();

            this.KeyUp += Valid._KeyUp;

            browse.Click        += browse_Click;
            _print.Click        += print_Click;
            _search.TextChanged += _pretraga_TextChanged;
            _open.Click         += open_Click;

            this._open.Enabled   = false;
            this._print.Enabled  = false;
            this._search.Enabled = false;
        }
 public override int GetHashCode()
 {
     return(base.GetHashCode() ^ AutoSize.GetHashCode() ^ HideTableHeaders.GetHashCode() ^ Wrap.GetHashCode());
 }