Ejemplo n.º 1
0
        //---------------------------------------------------
        //---------------tool-tips--------------

        private void TextBlock_MouseEnter(object sender, MouseEventArgs e)
        {
            (inkCountProgressBar.ToolTip as ToolTip).Content = cut_str(InkCount.ToString()) + "%";
        }
Ejemplo n.º 2
0
 private void ink_empty()
 {
     if (InkCount > 10 && InkCount <= 15)
     {
         inkLabel.Foreground = Brushes.Yellow;
         InkEmpty(this, new PrinterEventArgs(false, "your ink is only " + cut_str(InkCount.ToString()) + "%", PrinterName));
     }
     else if (InkCount <= 10 && InkCount > 1)
     {
         inkLabel.Foreground = Brushes.Orange;
         InkEmpty(this, new PrinterEventArgs(false, "your ink is only " + cut_str(InkCount.ToString()) + "%", PrinterName));
     }
     else if (InkCount <= 1)
     {
         inkLabel.Foreground = Brushes.Red;
         InkEmpty(this, new PrinterEventArgs(true, "your ink is only " + cut_str(InkCount.ToString()) + "%", PrinterName));
     }
 }