Exemplo n.º 1
0
        internal void Excel_Click(object sender, EventArgs e)
        {
            DictionaryForm select = new DictionaryForm(this.spreadsheetMain.Document);

            //select.Show();
            select.Show();
        }
        public static Guid GenericAdditionalMenu(this DictionaryForm form, string menuText, string acceleratorKey)
        {
            Guid eventTag = Guid.NewGuid();

            form.AddMenuHandler((sender, e) => FireEvent((DictionaryForm)sender, eventTag), menuText, acceleratorKey);

            return(eventTag);
        }
Exemplo n.º 3
0
        public static DictionaryFormExtended Extended(this DictionaryForm form)
        {
            string key = form.Key();

            if (!_cache.ContainsKey(key))
            {
                _cache[key] = new DictionaryFormExtended(form);
            }

            return(_cache[key]);
        }
        internal DictionaryFormExtended(DictionaryForm form)
        {
            Form = form;

            Id = (short)idInfo.GetValue(form);
        }
Exemplo n.º 5
0
 public static string Key(this DictionaryForm form) => $"{form.FullName} in {form.Dictionary.ProductId}";
 private static void FireEvent(DictionaryForm form, Guid eventTag)
 {
     GenericAdditionalMenuClicked?.Invoke(form, eventTag);
 }